#ifndef MAINSCENCE_H
#define MAINSCENCE_H

#include <QMainWindow>
#include <QTimer>
#include <map.h>
#include"heroninja.h"
#include "bullet.h"
#include "enemy.h"
#include "boom.h"

class MainScence : public QMainWindow
{
    Q_OBJECT

public:
    MainScence(QWidget *parent = nullptr);
    ~MainScence();

    void initScence();

    void playGame();

    void updatePosition();

    void paintEvent(QPaintEvent *);

    void mouseMoveEvent(QMouseEvent *);

    void collisionDetection();

    void enemyToScence();

    Enemy m_enemys[ENEMY_NUM];

    int m_recorder;

    Map m_map;

    HeroNinja m_hero;

    QTimer m_Timer;

    Bullet m_Bullet;


};
#endif // MAINSCENCE_H
